Fix a crash in gdbserver-xen where it references unmapped memory if
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 19 May 2006 14:22:11 +0000 (15:22 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 19 May 2006 14:22:11 +0000 (15:22 +0100)
commitd3eb6da3427af5112dfc3699541aa12fc6c7b4e2
tree3517ae53b482820d04b25ade93ce3b059180e0a8
parentb8ea0809a87b8dd4266b25aea54ce4034cd3780d
Fix a crash in gdbserver-xen where it references unmapped memory if
the page directory / page table pages are not present (for example
through dereferencing NULL in the gdb session). Changes:

- map_domain_va_32 has been rewritten to match map_domain_va_pae and
  map_domain_va_64.

- All three functions have been extended to handle multiple vCPUs,
  (untested, but shuld work), and check for _PAGE_PRESENT.

- Keir's workaround for the compile error in map_domain_va_64 has been
  removed and hopefully fixed.

Signed-Off-By: Simon Kagstrom <simon.kagstrom@bth.se>
tools/libxc/xc_ptrace.c